﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WJSHWebApi.DBModel
{
    [Table("AutomaticDoor_Entiy")]
    public class AutomaticDoor_Entiy:BaseDbmodel
    {
        public int id { get; set; }
        /// <summary>
        /// 自动门编号
        /// </summary>
        public int DeviceId { get; set; }
        /// <summary>
        /// 所在组
        /// </summary>
        public int Groupid { get; set; }
        /// <summary>
        /// 开门点位
        /// </summary>
        public int OpenIO { get; set; }
        /// <summary>
        /// 关门点位
        /// </summary>
        public int CloseIO { get; set; }
        /// <summary>
        /// 开门到位信号点位
        /// </summary>
        public int OpenPlaceIO { get; set; }
        /// <summary>
        /// 关门到位信号点位
        /// </summary>
        public int ClosePlaceIO { get; set; }
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; }
        /// <summary>
        /// 说明
        /// </summary>
        public string Remark { get; set; }
        /// <summary>
        /// 横坐标
        /// </summary>
        public int GoodX { get; set; }
        /// <summary>
        /// 纵坐标
        /// </summary>
        public int GoodY { get; set; }

        public AutomaticDoor_Entiy Clone()
        {
            return new AutomaticDoor_Entiy()
            {
                DeviceId = this.DeviceId,
                Groupid = this.Groupid,
                OpenIO = this.OpenIO,
                CloseIO = this.CloseIO,
                OpenPlaceIO = this.OpenPlaceIO,
                ClosePlaceIO = this.ClosePlaceIO,
                IsEnable = this.IsEnable,
                Remark = this.Remark
            };
        }
    }
}
